#include "PreGraphic.h"
#include "Viewport.h"

Viewport::Viewport(void)
{
}

Viewport::~Viewport(void)
{
}

void Viewport::setLeft(int left)
{
	mLeft = left;
}

void Viewport::setBottom(int bottom)
{
	mBottom = bottom;
}

void Viewport::setWidth(int width)
{
	mWidth = width;
}

void Viewport::setHeight(int height)
{
	mHeight = height;
}

int Viewport::getLeft() const
{
	return mLeft;
}

int Viewport::getRight() const
{
	return mLeft + mWidth;
}

int Viewport::getBottom() const
{
	return mBottom;
}

int Viewport::getTop() const
{
	return mBottom + mHeight;
}

int Viewport::getWidth() const
{
	return mWidth;
}

int Viewport::getHeight() const
{
	return mHeight;
}